﻿using System.Collections.Generic;
using System.Data.SqlClient;
using LoverMeeting.DataBase.DataMappers;
using LoverMeeting.Model.Entity;
using LoverMeeting.Model.Repository;

namespace LoverMeeting.DataBase
{
    public class MaritalStatusRepository : DaoRepositoryBase<MaritalStatus>, IMaritalStatusRepository 
    {
        public MaritalStatusRepository() : base(new MaritalStatusMapper())
        {
        }


        public IList<MaritalStatus> ReadList()
        {
            var command = new SqlCommand(@"SELECT Id as MaritalStatusId, Description as MaritalStatusDescription FROM MaritalStatus");
            return GetList(command);
        }
    }
}
